﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/UserCenter.Master" Inherits="System.Web.Mvc.ViewPage<NewResumeVModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%:SiteResource.Title() %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Content/Css/validator.css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/formValidator.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    <script type="text/javascript">
        var control = new plug.Control();
        $(function () {
            $.formValidator.initConfig({
                formID: "form1",
                onSuccess: function (meg) { return true; },
                onError: function (msg, obj, errorlist) { return false; }
            });
            $("input[name='Title']").formValidator({ tipID: 'TitleTip', onShow: ' ', onFocus: '请为您这份求职简历建立一份标题吧', onError: "请输入1-50个字符" }).inputValidator({ min: 1, max: 50, onError: '您的输入有误，请输入1-50个字符' }).regexValidator({ regExp: "^[^<>]+$", onError: "请勿包含特殊字符" });
            $("input[name='RealName']").formValidator({ tipID: 'RealNameTip', onShow: ' ', onFocus: '请输入您的真实姓名', onError: "您的输入有误，请输入1-20个字符" }).inputValidator({ min: 1, max: 20, onError: '您的输入有误，请输入1-20个字符' }).regexValidator({ regExp: "^[^<>]+$", onError: "请勿包含特殊字符" });
            $("input[name='Address']").formValidator({ tipID: 'txtAddressTip', onShow: ' ', onFocus: '请输入您的现居地址', onError: "您的输入有误，请输入1-50个字符" }).inputValidator({ min: 1, max: 50, onError: '您的输入有误，请输入1-50个字符' }).regexValidator({ regExp: "^[^<>]+$", onError: "请勿包含特殊字符" });
            $("input[name='College']").formValidator({ tipID: 'txtCollegeTip', onShow: ' ', onFocus: '请输入您的毕业院校或就读院校', onError: "您的输入有误，请输入1-20个字符" }).inputValidator({ min: 1, max: 20, onError: '您的输入有误，请输入1-20个字符' }).regexValidator({ regExp: "^[^<>]+$", onError: "请勿包含特殊字符" });
            $("input[name='Age']").formValidator({ tipID: 'AgeTip', onShow: ' ', onFocus: '请输入您的年龄', onError: "您的输入有误" }).regexValidator({ regExp: '^\\d{1,2}$', onError: "您的输入有误" });
            $("input[name='Contact']").formValidator({ tipID: 'ContactTip', onShow: ' ', onFocus: '请输入正确的联系方式', onError: "'您的输入有误，请输入1-100个字符" }).regexValidator({ regExp: '^[^!@#$%^&*()<>]{1,100}$', onError: '您的输入有误，请输入1-100个字符。不能保护特殊字符' });
            $("textarea[name='Experience']").formValidator({ tipID: 'ExperienceTip', onShow: ' ', onFocus: '请尽量详细的描述您的兼职经历', onError: "您的输入有误，请输入1-4000个字符" }).regexValidator({ regExp: '[^<>]{1,4000}', onError: '您的输入有误，请输入1-4000个字符,不能包含特殊字符' });
            $("textarea[name='AboutMe']").formValidator({ tipID: 'AboutMeTip', onShow: ' ', onFocus: '请介绍您自己，请尽量详细的描述。您可以参考我们提供的范例', onError: "您的输入有误，请输入1-4000个字符" }).regexValidator({ regExp: '[^<>]{1,4000}', onError: '您的输入有误，请输入1-4000个字符，不能包含特殊字符' });
            control.BuildSelect({ element: 'sltDegree', nobind: [0], defaultvalue: '<%:Model.Degree %>' }, 'Degree');
        });
        function PopLayer() {
            var pluglib = new plug.PopFrame();
            pluglib.OpenFrame('example', 'btnCloseExample');
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <div id="example" style="display:none;width:300px;height:220px;">书写范例<div><a id="btnCloseExample" href="javascript:;">关闭</a></div></div>
    <div class="usercenter-main">
        <div class="usercenter-main-topbg">
        </div>
        <div class="usercenter-main-content">
            <div class="usercenter-main-content-title">
                <div class="usercenter-main-content-title-left">
                    个人简历</div>
            </div>
            <div class="usercenter-notes">
                一份漂亮的简历将会给招聘者留下更深的印象，有助于您在兼职竞争中拥有更佳的优势，花点心思认真填写吧！</div>
            <form action="UserCenter/MyResume" method="post">
            <input type="hidden" id="clo" />
            <input type="hidden" name="id" value="<%:ViewData["Id"] %>" />
            <div class="usercenter-main-content">
                <div class="textboxs">
                    <div class="textboxs-label">
                        求职标题：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt" value="<%:Model.Title %>" name="Title" id="Title" maxlength="30"/></div>
                    <div class="textboxs-message" id="TitleTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        真实姓名：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt" value="<%:Model.RealName %>" name="RealName" id="RealName" maxlength="10"/></div>
                    <div class="textboxs-message" id="RealNameTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        年龄：</div>
                    <div class="textboxs-box">
                        <input type="text" class="textboxs-ipt" <%if(Model.Age!=0){ %> value="<%:Model.Age %>"<%} %> name="Age" id="Age" maxlength="3"/></div>
                    <div class="textboxs-message" id="AgeTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        联系电话：</div>
                    <div class="textboxs-box">
                       <input type="text" class="textboxs-ipt" value="<%:Model.Contact %>" name="Contact" id="Contact" maxlength="20"/></div>
                    <div class="textboxs-message" id="ContactTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        现居地址：</div>
                    <div class="textboxs-box">
                       <input type="text" class="textboxs-ipt" value="<%:Model.Address %>" name="Address" id="txtAddress" maxlength="50"/></div>
                    <div class="textboxs-message" id="txtAddressTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        性别：</div>
                    <div class="textboxs-box">
                        <input type="radio" name="Sex" value="1" class="radio1" id="radio1" <%if(Model.Sex=="1" || String.IsNullOrEmpty(Model.Sex)){ %> checked="checked"<%} %> />
                        <label for="radio1">
                            男</label>
                        <input type="radio" name="Sex" value="0" class="radio2" id="radio2" <%if(Model.Sex=="0"){ %> checked="checked"<%} %> />
                        <label for="radio2">
                            女</label>
                    </div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        目前角色：</div>
                    <div class="textboxs-box">
                        <select name="Status">
                            <option value="1" selected="selected">在校大学生</option>
                            <option value="2">自由职业者</option>
                            <option value="3">公司职员</option>
                        </select>
                        <script type="text/javascript">
                            $('select[name="Status"]').val('<%:Model.Status %>');
                        </script>
                    </div>
                    <div class="textboxs-message"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        最高学历：</div>
                    <div class="textboxs-box">
                        <select id="sltDegree" name="Degree">
                        </select>
                    </div>
                    <div class="textboxs-message">或者即将获取的学历</div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        毕业于（就读于）：</div>
                    <div class="textboxs-box">
                       <input readonly="readonly" type="text" class="textboxs-ipt" value="<%:Model.College %>" name="College" id="txtCollege"/></div>
                    <div class="textboxs-message" id="txtCollegeTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        兼职经历：</div>
                    <div class="textboxs-box">
                        <textarea style="resize: none;" rows="15" cols="55" name="Experience" id="Experience"><%=Model.Experience %></textarea></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        &nbsp;</div>
                    <div class="textboxs-box" id="ExperienceTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                        关于我：<br /><br />
                        <%--<a href="javascript:;" onclick="PopLayer()">书写范例</a>--%></div>
                    <div class="textboxs-box">
                        <textarea style="resize: none;" rows="15" cols="55" name="AboutMe" id="AboutMe"><%=Model.AboutMe %></textarea></div>
                </div>
                 <div class="textboxs">
                    <div class="textboxs-label"></div>
                    <div class="textboxs-box" id="AboutMeTip"></div>
                </div>
                <div class="textboxs">
                    <div class="textboxs-label">
                    </div>
                    <div class="textboxs-box">
                        <input type="image" id="btnSubmit" src="/Content/Images/usercenter-save.png" />
                    </div>
                    <%if (!Model.Pass || !String.IsNullOrEmpty(Model.FaildMessage))
                      {%> 
                      <div style="color:Red;">
                      <%:Model.FaildMessage %>
                      </div>
                    <%} %>
                </div>
            </div>
            </form>
        </div>
    <div class="usercenter-main-bottombg">
    </div>
    </div>
</asp:Content>

